package com.syt.model.order;

import com.baomidou.mybatisplus.annotation.*;
import com.syt.model.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 退款信息表
 * </p>
 *
 * @author XXXX
 * @since 2023-02-26
 */
@Getter
@Setter
@TableName("refund_info")
@ApiModel(value = "RefundInfo对象", description = "退款信息表")
public class RefundInfo  extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("编号")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("对外业务编号")
    @TableField("out_trade_no")
    private String outTradeNo;

    @ApiModelProperty("订单编号")
    @TableField("order_id")
    private Long orderId;

    @ApiModelProperty("支付类型（微信 支付宝）")
    @TableField("payment_type")
    private Integer paymentType;

    @ApiModelProperty("交易编号")
    @TableField("trade_no")
    private String tradeNo;

    @ApiModelProperty("退款金额")
    @TableField("total_amount")
    private BigDecimal totalAmount;

    @ApiModelProperty("交易内容")
    @TableField("subject")
    private String subject;

    @ApiModelProperty("退款状态")
    @TableField("refund_status")
    private Integer refundStatus;

    @ApiModelProperty("回调信息")
    @TableField("callback_content")
    private String callbackContent;

    @TableField("callback_time")
    private Date callbackTime;

    @ApiModelProperty("创建时间")
    @TableField("create_time")
    private Date createTime;

    @ApiModelProperty("更新时间")
    @TableField("update_time")
    private Date updateTime;

    @ApiModelProperty("逻辑删除(1:已删除，0:未删除)")
    @TableField("is_deleted")
    @TableLogic
    private Integer isDeleted;


}
